package com.youle.robots;

import org.springframework.context.ApplicationListener;
import org.springframework.integration.mqtt.event.MqttConnectionFailedEvent;

/**
 * Created by IntelliJ IDEA.
 * <p>
 * MqttConnectionFailedEvents are published when the connection/subscription fails.
 * <p>
 * User: kedong
 * Date: 18-3-22
 * Time: 下午3:48
 * To change this template use File | Settings | File and Code Templates ->Includes->File Header.
 */
public class MqttConnectionFailedListener implements ApplicationListener<MqttConnectionFailedEvent> {

    @Override
    public void onApplicationEvent(MqttConnectionFailedEvent event) {
        System.out.println(event.getCause());
    }
}
